#!/bin/sh

DB_USER=root
DB_PASSWORD=root
DB=gecoop
DB_DEV=gecoop_dev

mysqladmin drop $DB_DEV -u $DB_USER --password=$DB_PASSWORD
sleep 1
mysqladmin create $DB_DEV -u $DB_USER --password=$DB_PASSWORD
sleep 1
mysqldump -u $DB_USER --password=$DB_PASSWORD $DB | mysql -u $DB_USER --password=$DB_PASSWORD $DB_DEV
